package com.yunti.business.service;

import java.io.IOException;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.yunti.business.domain.BaseScore;
import com.yunti.business.vo.req.GetScoreItemReq;
import com.yunti.business.vo.req.ShowStuInfoReq;
import com.yunti.business.vo.req.UpdateScoreReq;
import com.yunti.business.vo.res.OrchestrateRes;
import com.yunti.business.vo.res.OrchestrateWithSubRes;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletResponse;

/**
 * 学生成绩Service接口
 *
 * @author ruoyi
 * @date 2024-08-22
 */
public interface IBaseScoreService extends IService<BaseScore> {
    /**
     * 查询学生成绩
     *
     * @param id 学生成绩主键
     * @return 学生成绩
     */
    public BaseScore selectBaseScoreById(Long id);

    /**
     * 查询学生成绩列表
     *
     * @param baseScore 学生成绩
     * @return 学生成绩集合
     */
    public List<BaseScore> selectBaseScoreList(BaseScore baseScore);

    /**
     * 新增学生成绩
     *
     * @param baseScore 学生成绩
     * @return 结果
     */
    public int insertBaseScore(BaseScore baseScore);

    /**
     * 修改学生成绩
     *
     * @param baseScore 学生成绩
     * @return 结果
     */
    public int updateBaseScore(BaseScore baseScore);

    /**
     * 批量删除学生成绩
     *
     * @param ids 需要删除的学生成绩主键集合
     * @return 结果
     */
    public int deleteBaseScoreByIds(Long[] ids);

    /**
     * 删除学生成绩信息
     *
     * @param id 学生成绩主键
     * @return 结果
     */
    public int deleteBaseScoreById(Long id);

    public TableDataInfo getScoreItem(GetScoreItemReq getScoreItemReq, Integer pageNum, Integer size);

    AjaxResult updateStuScore(@RequestBody UpdateScoreReq updateScoreReq);

    AjaxResult getSchoolScoreList(Long updateScoreReq, Long groupId);

    AjaxResult getStudentScoreList(Long updateScoreReq);

    void outputShoujiWord(HttpServletResponse response, Long subId) throws IOException;

    AjaxResult stuReady(OrchestrateRes orchestrateRes);

    AjaxResult getReadyStu();

    String inputScoreExcel(List<OrchestrateWithSubRes> orchestrateWithSubRes, boolean updateSupport, String operName);

    AjaxResult getAllLsmpZb();

    AjaxResult getBigScreenData(Long groupId);

    AjaxResult outputScoreWord(HttpServletResponse response, Long subId, Boolean hasName, Long groupId) throws IOException;

    AjaxResult showStuScore(ShowStuInfoReq showStuInfoReq);

    AjaxResult outputShoujiWord2(HttpServletResponse response, Long subId, Long groupId) throws IOException;

    AjaxResult outputAllScoreExcel(HttpServletResponse response, Long groupId) throws IOException;

    AjaxResult getScoreBigScreen(Long subId, Long groupId);
}
